MS-Windows followup for revision 109252.
authorEli Zaretskii <eliz@gnu.org>
Sun, 29 Jul 2012 15:43:09 +0000 (18:43 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 29 Jul 2012 15:43:09 +0000 (18:43 +0300)
 nt/inc/stdalign.h (_Alignas, alignas): Define.
 src/makefile.w32-in (LISP_H): Add $(NT_INC)/stdalign.h.

nt/ChangeLog
nt/inc/stdalign.h
src/ChangeLog
src/makefile.w32-in

index e7387ceb622980049515d78234c3494176ee107a..66c395fdb3873888cbf15e07a5f3022df4a95956 100644 (file)
@@ -1,3 +1,7 @@
+2012-07-29  Eli Zaretskii  <eliz@gnu.org>
+
+       * inc/stdalign.h (_Alignas, alignas): Define.
+
 2012-07-28  Paul Eggert  <eggert@cs.ucla.edu>
 
        Use Gnulib stdalign module (Bug#9772, Bug#9960).
index 2ff7a43096ff89d79ee688f2640a577cf360c3a8..7e349dc31d0a2a94ae7eb67c0d2e808595697008 100644 (file)
 #endif
 #define alignof _Alignof
 
+#if __GNUC__
+# define _Alignas(a) __attribute__ ((__aligned__ (a)))
+#elif 1300 <= _MSC_VER
+# define _Alignas(a) __declspec (align (a))
+#endif
+#ifdef _Alignas
+# define alignas _Alignas
+#endif
+
 #endif /* _NT_STDALIGN_H_ */
index 2141eee02e591acec90de5ca56db63ddce825b9d..4ae31ff3e498936804f304a450818805eb4bae77 100644 (file)
@@ -1,3 +1,7 @@
+2012-07-29  Eli Zaretskii  <eliz@gnu.org>
+
+       * makefile.w32-in (LISP_H): Add $(NT_INC)/stdalign.h.
+
 2012-07-29  Dmitry Antipov  <dmantipov@yandex.ru>
 
        Cleanup statistics calculation in Fgarbage_collect.
index ada19ccdca3b99075db76e61b2605bf4f23c6def..00b9a21065b87f1f8a6f6f9f620a673fd226b5b0 100644 (file)
@@ -438,6 +438,7 @@ LANGINFO_H     = $(NT_INC)/langinfo.h \
 LISP_H         = $(SRC)/lisp.h \
                 $(SRC)/globals.h \
                 $(GNU_LIB)/intprops.h \
+                $(NT_INC)/stdalign.h \
                 $(INTTYPES_H)
 MD5_H          = $(GNU_LIB)/md5.h \
                 $(NT_INC)/stdint.h